function domString(dom) {
    var src = dom.toString();
    var result = src.substring(src.indexOf("/*") + 2, src.lastIndexOf("*/"));
    return result;
}
var footerinfo=domString(function () {
})
var footerInit=function () {
    var footerobj=document.getElementsByClassName('footer_container')[0]
    footerobj.innerHTML=footerinfo;
}
var headerinfo=domString(function () {
/*<header>
    <div class="header-content clearfix">
        <div class="logo fl">
        <img src="images/logo.png" alt="" />
        </div>
        <ul class="layui-nav fl" lay-filter="">
        <li class="layui-nav-item first">
        <a href="xuanke/courseSelect.html"><i></i>选课</a>
    <dl class="layui-nav-child"> <!-- 二级菜单 -->
        <dd><a href="xuanke/courseSelect.html">选课任务</a></dd>
    <dd><a href="xuanke/courseStatistic.html">选课结果统计</a></dd>
    </dl>
    </li>
    <li class="layui-nav-item layui-this second"><a href="bandingTask.html"><i></i>分班</a></li>
    <li class="layui-nav-item third"><a href="paike/paike_task.html"><i></i>排课</a></li>
    <li class="layui-nav-item four">
        <a href="kebiao/collectSchedule.html"><i></i>课表查询</a>

    </li>
    </ul>
    <div class="user fl">
        <img src="images/user.png" alt="" />
        <span>郭襄/教师</span>
        <a href="##"><img src="images/set.png" alt="" /></a>
        </div>
        </div>
        </header>*/
})
var headerInit=function () {
    var headerobj=document.getElementsByClassName('header_box')[0]
    headerobj.innerHTML=headerinfo
    // var nav_li = document.getElementsByClassName('head_nav')[0].getElementsByTagName('li');
    // nav_li[num].className = 'active';
}
